<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:ui="http://java.sun.com/jsf/facelets" 
      xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:f="http://java.sun.com/jsf/core">
    <h:body>
		<ui:composition template="./templates/framework.xhtml">
			<ui:define name="content">
				<ui:include src="./templates/header.xhtml">
					<ui:param name="text" value="#{i18n['generic.back']}" />
					<ui:param name="link" value="settings.xhtml" />
				</ui:include>
				<h:form>
					<h:dataTable value="#{listUsersBean.users}" var="user" styleClass="table" columnClasses="titleColumn,deleteColumn">
						<h:column>
							<h:outputLink value="admin-edituser.xhtml?id=#{user.exposableId}" styleClass="titleLink" title="#{i18n['account.editLink']}">
								<h:outputText value="#{user.username}" />
							</h:outputLink>
						</h:column>
						<h:column>
							<h:outputLink value="./admin-listusers.xhtml?delete=#{user.exposableId}" onclick="return confirm('#{i18n['account.deleteConfirmation']}')" styleClass="deleteLink"></h:outputLink>
						</h:column>
					</h:dataTable>
					<div class="buttons">
						<input type="button" value="#{i18n['account.createLink']}" onclick="location.href='admin-adduser.xhtml'" />
						<input type="button" value="#{i18n['generic.cancel']}" onclick="location.href='settings.xhtml'" />
					</div>
				</h:form>
			</ui:define>
		</ui:composition>
    </h:body>
</html>